﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Sys003.aspx.cs" Inherits="Admin_Sys_Sys003" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="width: 100%; min-width: 700px">
        <div style="padding-right: 12px">
            <table width="100%" cellspacing="0" cellpadding="0" class="AddTable">
                <tr>
                    <td width="80px">
                        系统名称
                    </td>
                    <td align="left" width="180px">
                        <yncWebDDL:DrpSystemTypes ID="drpSystem" AutoPostBack="true" ShowSelectedItem="false" OnSelectedIndexChanged="drpSystem_IndexChanged" runat="server">
                        </yncWebDDL:DrpSystemTypes>
                    </td>
                    <td width="70px">
                        频道名称
                    </td>
                    <td align="left" width="120px">
                        <yncWebDDL:DrpChannels ID="drpChannel" AutoPostBack="true" ShowSelectedItem=false runat="server">
                        </yncWebDDL:DrpChannels>
                    </td>
                    <td></td>
                    <td width="60px" align="center">
                        <%=GetAddLink(string.Format("Sys003a.aspx?{0}={1}&{2}={3}" , TSSystemMetadata.ColumnNames.SystemId,drpSystem.SelectedValue,TSFunctionsMetadata.ColumnNames.FunctionID,drpChannel.SelectedValue), null, 500, 400)%>
                    </td>
                </tr>
            </table>
        </div>
        <yncWeb:PagnationGrid PageSize="30" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable">
                    <thead>
                        <tr>
                            <th width="40px">
                                序号
                            </th>
                            <th width="140px">系统代码</th>
                            <th width="200px">
                                频道名称
                            </th>
                            <th>URL</th>
                            <th width="60px">序号</th>
                            <th width="60px" class="center">
                                状态
                            </th>
                            <th width="60px" class="center">
                                修改
                            </th>
                            <th width="60px" class="center">
                                删除
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Container.ItemIndex +1 %>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.FunctionCode)%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.FunctionName)%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.FunctionURL)%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.Sequence)%>
                    </td>
                    <td class="center">
                        <%# GetActiveStatus(DataBinder.Eval(Container.DataItem, TSFunctionsMetadata.ColumnNames.IsActive))%>
                    </td>
                    <td class="center action">
                        <%# GetUpdateLink("Sys003a.aspx", Container.DataItem, 500, 400, TSFunctionsMetadata.ColumnNames.FunctionID)%>
                    </td>
                    <td class="center action">
                        <%# GetDeleteLink("Sys003a.aspx", Container.DataItem, TSFunctionsMetadata.ColumnNames.FunctionID)%>
                    </td>
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr class="odd">
                     <td>
                        <%# Container.ItemIndex +1 %>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.FunctionCode)%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.FunctionName)%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.FunctionURL)%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,TSFunctionsMetadata.ColumnNames.Sequence)%>
                    </td>
                    <td class="center">
                        <%# GetActiveStatus(DataBinder.Eval(Container.DataItem, TSFunctionsMetadata.ColumnNames.IsActive))%>
                    </td>
                    <td class="center action">
                        <%# GetUpdateLink("Sys003a.aspx", Container.DataItem, 500, 400, TSFunctionsMetadata.ColumnNames.FunctionID)%>
                    </td>
                    <td class="center action">
                        <%# GetDeleteLink("Sys003a.aspx", Container.DataItem, TSFunctionsMetadata.ColumnNames.FunctionID)%>
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
</asp:Content>

